home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
comm
/
misc
/
avmNfax1_33.lha
/
AVMSuite
/
rexx
/
setuptfax.avm
< prev
next >
Wrap
Text File
|
1994-06-24
|
5KB
|
215 lines
/* TITLE: avm:rexx/setuptfax.avm */
/* reading fax settings and writing to the serialdevice */
myvar = getclip('TFaxStp1')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxID')
if myvar ~= "" then
do /* if not "" */
cidstring = 'AT+FLID="'||myvar||'"'
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxCap')
if myvar ~= "" then
do
cidstring = 'AT+FDCC='||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp2')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp3')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp4')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp5')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end